<?php
define("CM_USERNAME", 'root');
define("CM_PASSWORD", 'root');
define("CM_HOST", 'localhost');
define("CM_DBNAME", 'inventory');
define("CM_LOGINTABLE", 'site_users');
define("CM_ROOTDIR", '/VM/Web/Mac/site_inventory/');
define('BASED', '/VM/Web/Mac/site_inventory/');
define('AUTH', '9uChU2ek');
date_default_timezone_set("Asia/Taipei");
function debugRunTime($text)
{
	echo '
	<script type="text/javascript">
		<!--
		alert(\''.$text.'\');
		-->
	</script>
	';
}
//define('BASEURL', 'http:/localhost/site_inventory/');
if (isset($_GET['base']))
{
	unset($_SESSION['baseURL']);
	$_SESSION['baseURL'] = 'http://'.$_GET['base'].'/site_inventory/';
}

else
{
	if (isset($_SESSION['baseURL']))
	{
		//doNothing();
	}
	else
	{
		$_SESSION['baseURL'] = "http://localhost/site_inventory/";
	}
}
define('BASEURL', $_SESSION['baseURL']);

$filename = '.htaccess';

if (file_exists($filename))
{
	define('INDEX', './');
	define('EXT', '?');
}
else
{
	define('INDEX', 'index.php?page=');
	define('EXT', '&');
}






#MCE SETTINGS:
/*
Do not forget to enable tinyMCE image uploader through /js/tinymce/jscripts/tiny_mce/plugins/Archiv/config.php 
*/
?>